<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY nbsp "&#x00A0;">
]>
<xsl:stylesheet
  version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:msxml="urn:schemas-microsoft-com:xslt"
  xmlns:umbraco.library="urn:umbraco.library"
  exclude-result-prefixes="msxml umbraco.library">

  <xsl:output method="xml" omit-xml-declaration="yes"/>
  <xsl:param name="currentPage"/>
  
  <xsl:template match="/">

    <!-- Root Node -->
    <xsl:variable name="rootNode" select="$currentPage/ancestor-or-self::root" />
    <xsl:variable name="MaxArticle" select="6" />

    <!-- Homepage -->
    <xsl:variable name="homeNode" select="$rootNode/CWS_Master" />

    <div class="ArticleList2Col clear">
      <ul class="ArticleListMini clearfloat">
        <xsl:for-each select="$homeNode/News/Article [string(umbracoNaviHide) != '1']">
          <xsl:if test="position() &lt; $MaxArticle">
            <li>
              <div class="ArticleImageMini">
                <a href="{umbraco.library:NiceUrl(@id)}">
                  <img class="" src="{current()/articlePhoto}" alt="{@nodeName}"/>
                </a>
              </div>
              <div class="ArticleTextMini">
                <p>
                  <a href="{umbraco.library:NiceUrl(@id)}" title="{@nodeName}">
                    <xsl:value-of select="@nodeName" />
                  </a>
                </p>
              </div>
            </li>
          </xsl:if>
        </xsl:for-each>
      </ul>

    </div>

  </xsl:template>


</xsl:stylesheet>